#include <boost/filesystem.hpp>

int main()
{
	boost::filesystem::path p = boost::filesystem::current_path();

	boost::filesystem::directory_iterator it(p);
	while (it != boost::filesystem::directory_iterator() )
		std::cout << *it++ << std::endl;

	for (boost::filesystem::recursive_directory_iterator it2(p); 
		it2!= boost::filesystem::recursive_directory_iterator(); 
		++it2)
		std::cout << *it2 << std::endl;
}